package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author mengyb
 * @date 2019-04-16
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("MMRJ_T")
public class MmrjT extends PO<MmrjT> {
    private static final long serialVersionUID = 1L;
    @TableId(value = "MMRJENT",type = IdType.INPUT)
    private String MMRJENT;

    private String MMRJ001;

    private String MMRJ002;

    private String MMRJ003;

    private String MMRJ004;

    private String MMRJ010;

    private String MMRJ011;

    private String MMRJ012;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRJ013;

    private BigDecimal MMRJ014;

    private String MMRJACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRJUSER;
    @TableField(fill = FieldFill.INSERT)
    private String MMRJGRUP;
    @TableField(fill = FieldFill.UPDATE)
    private String MMRJMODU;
    @TableField(fill = FieldFill.INSERT)
    private String MMRJTIME;
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRJDATE;
    @TableField(fill = FieldFill.INSERT)
    private String MMRJORIG;
    @TableField(fill = FieldFill.INSERT)
    private String MMRJORIU;

    @Override
    protected Serializable pkVal() {
        return this.MMRJENT;
    }
}
